import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import ElementUI from 'element-ui'
import locale from "element-ui/lib/locale/lang/en";
import 'element-ui/lib/theme-chalk/index.css'
import routerConfig from './router.config'
import axios from 'axios'

Vue.use(VueRouter);
Vue.use(ElementUI,{locale});

//创建路由实例
const router = new VueRouter(routerConfig);
Vue.prototype.$http = axios

new Vue({
  el: '#app',
  components: {App},
  template: '<App/>',
  render: h => h(App),
  router,
})
